package com.jrx.anytxn.transaction.dto.loan;

import com.jrx.anytxn.common.constant.RegexConstant;
import com.jrx.anytxn.transaction.dto.common.CommonReq;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @program: anytxn-cf-parent
 * @description:
 * @author: xiaoyu.jing
 * @date: 2021-03-09 16:48
 **/
public class ModifyLoanInfoReq extends CommonReq {

    @ApiModelProperty(value = "订单编号")
    @NotEmpty(message = "订单编号不允许空")
    @Size(max=32, message = "订单编号不能超过32位")
    private String loanId;

    @ApiModelProperty(value = "收款行号")
    @NotEmpty(message = "收款行号不允许空")
    private String payeeBank;

    @ApiModelProperty(value = "收款方账户名")
    @NotEmpty(message = "收款方账户名不允许空")
    private String payeeName;

    @ApiModelProperty(value = "收款方账号")
    @NotEmpty(message = "收款方账号不允许空")
    @Pattern(regexp = RegexConstant.BANKCARD_NUMBER,message = "收款方账号格式不正确(15到20位或9位)")
    private String payeeAccount;

    @ApiModelProperty(value = "收款账户类型")
    @NotEmpty(message = "收款账户类型不允许空")
    @Size(max=1, message = "收款账户类型不能超过1位")
    private String payeeAccountType;

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public String getPayeeBank() {
        return payeeBank;
    }

    public void setPayeeBank(String payeeBank) {
        this.payeeBank = payeeBank;
    }

    public String getPayeeName() {
        return payeeName;
    }

    public void setPayeeName(String payeeName) {
        this.payeeName = payeeName;
    }

    public String getPayeeAccount() {
        return payeeAccount;
    }

    public void setPayeeAccount(String payeeAccount) {
        this.payeeAccount = payeeAccount;
    }

    public String getPayeeAccountType() {
        return payeeAccountType;
    }

    public void setPayeeAccountType(String payeeAccountType) {
        this.payeeAccountType = payeeAccountType;
    }


}
